From 796c161732f8d5b9769780bf78d599e345cbf69b Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 24 May 2005 05:14:33 +0000 Subject: [PATCH] Use memmove for overlapping mem copy. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@1174 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/util.c b/gpsbabel/util.c index d1a5fa82a..4ce40cf4f 100644 --- a/gpsbabel/util.c +++ b/gpsbabel/util.c @@ -895,7 +895,7 @@ char * str_utf8_to_ascii( const char * str ) cur += bytes - 1; } else { *cur = (char)value; - strcpy( cur+1, cur+bytes ); + memmove(cur+1, cur+bytes, bytes+1); } } cur++; -- 2.30.2